objects = main.o cpu_rate.o io_cnt.o fs_rate.o mem_rate.o sysinfo.o log.o
main: $(objects)
	gcc -o main -lpthread $(objects)
%.o : %.c
	gcc -c $<
clean:
	rm *.o
	rm main